<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>

       <s:form action="fileUploadsss" method="POST" name="pos"

           enctype="multipart/form-data" target="smz">

           <iframe name="smz" width="0" height="0" frameborder="0"

              style="display: none">
           </iframe>

           <table width="80%" border="1" cellspacing="0" cellpadding="0">

              <tr>

                  <td width="20%" align="right">

                     <font color="red">*</font>上传图片文件

                  </td>

                  <td width="20%">

                     <s:file name="myFile"></s:file>

                     <s:submit value="上传"></s:submit>

              </tr>

           </table>

       </s:form>

 		
		
       <s:hidden name="pagePath" id="_page_path"></s:hidden>

    </body>

    <script type="text/javascript">
 
   		var _page_path = document.getElementById("_page_path").value;
    //var _page_path ="http://www.w3school.com.cn/i/eg_tulip.jpg";
	
   		 if(null!=_page_path  && ""!=_page_path){
		alert(_page_path);
       window.returnValue=_page_path;
       alert("窗口要关闭了");
       window.close();
        alert("窗口已经关闭了");
    }


  </script>
</html>
